package com.guli.eduService.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.guli.eduService.entity.EduCourse;
import com.guli.eduService.entity.EduTeacher;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.eduService.entity.vo.TeacherQuery;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 讲师 服务类
 * </p>
 *
 * @author zxc
 * @since 2023-03-26
 */
public interface EduTeacherService extends IService<EduTeacher> {
    public boolean deleteById(String id);
    public void QueryThroughConditions(Page<EduTeacher> eduTeacherPage , TeacherQuery teacherQuery);

    public EduTeacher queryById(String id);

    /**
     * 定义 根据特定排序规则 查询指定数量的讲师信息;
     * @param teacherNum
     * @return
     */
    List<EduTeacher> queryByTeacherNum(String teacherNum);

    /**
     * 定义 根据条件，对于前台讲师数据进行条件查询;
     * @param page
     * @return
     */
    Map<String, Object> getFrontTeacherInfoCondition(Page<EduTeacher> page);

    /**
     * 定义 根据讲师id，查询该讲师所讲的所有课程信息;
     * @param teacherId
     * @return
     */
    List<EduCourse> getTeacherCourse(String teacherId);
}
